import { UPDATE_SUB_INDEX } from '../actions'

const cursubjectindex = (state = null, action) => {
  switch (action.type) {
    case UPDATE_SUB_INDEX:
      return action.payload
    default:
      return state
  }
}

export default cursubjectindex